<f:layout name="Login" />

<f:section name="ResetPassword">
    <div class="typo3-login-form t3js-login-formfields">
        <h2><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:headline" /></h2>
        <f:if condition="{resetInitiated}">
            <f:then>
                <div class="callout callout-success">
                    <h4 class="callout-title"><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:email_sent.headline" /></h4>
                    <div class="callout-body"><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:email_sent.message" arguments="{0: email}" /></div>
                </div>
                <p class="pull-right">
                    <f:be.link route="login"><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:button.back_to_login" /></f:be.link>.
                </p>
            </f:then>
            <f:else>
                <f:if condition="{invalidEmail}">
                    <f:be.infobox message="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:error.invalid_email')}" state="1" />
                </f:if>
                <p><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:instructions.email" /></p>
                <form action="{f:be.uri(route: 'password_forget_initiate_reset')}" method="post" name="forget-password-form" id="typo3-forget-password-form">
                    <f:form.hidden name="loginProvider" value="{loginProviderIdentifier}" />
                    <div class="form-group">
                        <div class="form-control-wrap">
                            <div class="form-control-holder">
                                <input type="email" name="email" value="{email}" placeholder="you@example.com" class="form-control input-login t3js-clearable" autofocus="autofocus" required="required" />
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <button class="btn btn-block btn-login" type="submit" name="forgetPasswordSubmit">
                            <f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:button.initiate" />
                        </button>
                    </div>
                </form>
                <p>
                    <small>
                        <f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:note.other_providers" />
                    </small>
                </p>
                <p class="pull-right">
                    <f:be.link route="login"><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_reset_password.xlf:button.back_to_login" /></f:be.link>.
                </p>
            </f:else>
        </f:if>
    </div>
</f:section>
